package com.link.base.base.dailystatement.service;

import com.link.base.base.dailystatement.model.DailyDetail;
import com.link.core.basic.service.BasicService;

/**
 * Copyright  hande Company. All Rights Reserved.
 *
 * @author  安小波
 * @date:   2018-08-01
 * @version 1.0
 */

public interface DailyDetailService extends BasicService<DailyDetail> {
    /**
     * 第一次统计日结信息
     *
     * @param entity
     * @return
     * @throws Exception
     */
    public DailyDetail queryDailyDetails(DailyDetail entity) throws Exception;

    /**
     * 更据头id查询日结详情信息
     *
     * @param entity
     * @return
     * @throws Exception
     */
    public DailyDetail queryByHeadId(DailyDetail entity) throws Exception;

    /**
     * 日结单详情页面数据插入操作
     *
     * @param entity
     * @throws Exception
     */
    public void dailyDetailsInsert(DailyDetail entity) throws Exception;

    /**
     *将账单信息存储在PDF文件中并返回存储路径
     */
    String printDailyBillPdf(DailyDetail entity) throws Exception;
}
